﻿using System.Windows.Controls;

namespace SilverlightApplication1.Interfaces
{
    public class AnimatedControl : UserControl, IAnimated
    {
        public virtual void RunAnimation()
        {            
        }

        public event EventHandlers.AnimationCompletedHandler AnimationCompleted;

        public void InvokeAnimationCompleted()
        {
            if (AnimationCompleted != null)
            {
                AnimationCompleted();
            }
        }

        public void StopAnimation()
        {
            AnimationCompleted = null;
        }
    }
}
